import os

import yaml
from common.config import Config


def load_yaml(file_name):
    with open(Config.APP_PATH + os.sep + "common" + os.sep + file_name, 'r', encoding='utf-8') as f:
        return yaml.safe_load(f)


if __name__ == '__main__':
    print(load_yaml("data.yaml"))
